#ifndef DOMNODELIST_H
#define DOMNODELIST_H

#include <QDomNode>
#include <QDomNodeList>
#include <QVector>

class DomNodeList
{
private:
    QVector<QDomNode> nodeVector;
public:
    DomNodeList();
    inline uint length(void){return nodeVector.size();}
    void append(QDomNode);
    void append(QDomNodeList);
    void append(DomNodeList);
    void prepend(QDomNode);
    void prepend(QDomNodeList);
    void prepend(DomNodeList);
    void operator<<(QDomNode);
    void operator<<(QDomNodeList);
    void clear(void);
    inline QDomNode operator[](uint index){return nodeVector[index];}
    inline QDomNode at(uint index){return nodeVector[index];}
    friend DomNodeList operator+(DomNodeList,QDomNode);
    friend DomNodeList operator+(DomNodeList,QDomNodeList);
};

#endif // DOMNODELIST_H
